package com.xinyue.design.template;

public class ProfitBicycle extends Profit{

	/**构造器，初始化父类参数。
	 * @param costCount 进货量
	 * @param costPrice 进货单价
	 * @param saleCount 销售量
	 * @param salePrice 销售单价
	 * @param nowPrice 	物品当前进价
	 */
	public ProfitBicycle(int costCount, double costPrice, int saleCount ,double salePrice, double nowPrice) {
		super.costCount = costCount;
		super.costPrice = costPrice;
		super.saleCount = saleCount;
		super.salePrice = salePrice;
		this.nowPrice = nowPrice;
	}
	
	/**商品销售中的其他支出费用
	 * <test>自定义算法，每种物品的销售支出费用是不一样的。
	 */
	@Override
	protected double outlay() {
		//自行车销售中的其他支出费用
		return super.costCount * 19.8;
	}
}
